/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Reportes;

/**
 *
 * @author VICENTE
 */

import UTILITARIOS.EncriptarCadena;
import net.sf.jasperreports.engine.JRAbstractScriptlet;
import net.sf.jasperreports.engine.JRDefaultScriptlet;
import net.sf.jasperreports.engine.JRScriptletException;

public class Decodificar  extends JRDefaultScriptlet {

    public Decodificar(){

    }
    public Double DecodificarString(String cad) throws JRScriptletException{

        String d = new EncriptarCadena().Encriptar("nfn inversiones", cad, false);
        return Double.valueOf(d);
    }
}
